# -*- coding: UTF-8 -*-
"""
@author: tgy
@file: demo01.py
@time: 2021/05/16
"""
import sys

def test01():
    ...
    print('name %(name)s,age %(age)s' % {'age': 21, 'name': 'zhangsan'})
    print('opt{name}'.format(name='1111'))
    name = 'lisi'
    print(f'name {name}')
    print(f'{print("1111")}')
    print(10 // 3)
    print(10 / 3)
    first, *opt, last = [1, 2, 3, 4, 5]
    print(first)
    print(opt, last)


def test02():
    ...
    if not ('',):
        print('111')


    desc = 'name %(name)s,age %(age)d' % {'name':'zhangsan','age':21}
    print(desc)
    print(vars())


def test03():
    ...
    name = 'zhangsan'
    age = 21
    fmt = 'name:%(name)s,age:%(age)d' % vars()
    print(fmt)
    print(vars())
    print('11opt111'.strip('1'))

if __name__ == '__main__':
    ...
    test03()
